<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hello,react</title>
</head>
<body>
    <div id="test"></div>
</body>

<script src="../../js/react.development.js"></script>
<script src="../../js/react-dom.development.js"></script>
<script src="../../js/babel.min.js"></script>
<!-- type一定要填写为babel 不然无法使用jsX语法 -->
<script type="text/babel">
    const dom = <h1>hello, react</h1>;
    let byId = document.getElementById('test');
    // api要记牢, 多敲
    ReactDOM.render(dom, byId);
</script>
</html>